package com.xrkol.sharelib.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 餐
 * 
 * @author dipei.ruan
 *
 */
@Entity
@Table
public class Food extends BasicEntity {

	private static final long serialVersionUID = 1L;

	@Id
	@GenericGenerator(name = "hibernate-uuid", strategy = "uuid")
	@GeneratedValue(generator = "hibernate-uuid")
	private String id;

	@Lob
	private String headImages;

	// 价格
	private Integer price;

	// TODO 标签
	private String label;


	// 运费
	private Integer transportPrice;

	// 产品描述
	private String description;

	// 所属店铺
	@ManyToOne
	private Shop shop;

	// 所属分类
	@ManyToOne
	private FoodType foodtype;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getHeadImages() {
		return headImages;
	}

	public void setHeadImages(String headImages) {
		this.headImages = headImages;
	}

	public String getLabel() {
		return label;
	}
	
	public void setLabel(String label) {
		this.label = label;
	}
	public Integer getTransportPrice() {
		return transportPrice;
	}

	public void setTransportPrice(Integer transportPrice) {
		this.transportPrice = transportPrice;
	}

	public Integer getPrice() {
		return price;
	}

	public void setPrice(Integer price) {
		this.price = price;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Shop getShop() {
		return shop;
	}

	public void setShop(Shop shop) {
		this.shop = shop;
	}

	public FoodType getFoodtype() {
		return foodtype;
	}

	public void setFoodtype(FoodType foodtype) {
		this.foodtype = foodtype;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
